<%--
  Created by IntelliJ IDEA.
  User: 86138
  Date: 2024/5/29
  Time: 下午8:34
  To change this template use File | Settings | File Templates.
--%>
<%@ page contentType="text/html;charset=UTF-8" language="java" %>
<html>
<head>

    <title>餐厅管理系统登录解密</title>
    <!-- 新 Bootstrap 核心 CSS 文件 -->
    <!-- 新 Bootstrap 核心 CSS 文件 -->
    <link href="https://cdn.staticfile.org/twitter-bootstrap/3.3.7/css/bootstrap.min.css" rel="stylesheet">

    <!-- jQuery文件。务必在bootstrap.min.js 之前引入 -->
    <script src="https://cdn.staticfile.org/jquery/2.1.1/jquery.min.js"></script>

    <!-- 最新的 Bootstrap 核心 JavaScript 文件 -->
    <script src="https://cdn.staticfile.org/twitter-bootstrap/3.3.7/js/bootstrap.min.js"></script>
    <%--<link href="back.css" rel="stylesheet" type="text/css" />--%>
</head>
<body>
<div class="container">
    <div class="row clearfix">
        <div class="col-md-12 column">
            <form role="form" class="form-horizontal" action="${pageContext.request.contextPath}/addDishServlet" method="post" enctype="multipart/form-data">
                <div class="form-group">
                    <label for="inputEmail3" class="col-sm-2 control-label">餐品ID</label>
                    <div class="col-sm-10">
                        <input type="text" name="dishId" class="form-control" id="inputEmail3" />
                    </div>
                </div>

                <div class="form-group">
                    <label for="inputEmail4" class="col-sm-2 control-label">餐品名</label>
                    <div class="col-sm-10">
                        <input type="text" name="dishName" class="form-control" id="inputEmail4" />
                    </div>
                </div>

                <div class="form-group">
                    <label for="inputEmail6" class="col-sm-2 control-label">餐品描述</label>
                    <div class="col-sm-10">
                        <input type="text" name="dishContent" class="form-control" id="inputEmail6" />
                    </div>
                </div>

                <div class="form-group">
                    <label for="inputEmail5" class="col-sm-2 control-label">餐品价格</label>
                    <div class="col-sm-10">
                        <input type="text" name="dishPrice" class="form-control" id="inputEmail5" />
                    </div>
                </div>

                <div class="form-group">
                    <label for="exampleInputFile">图片</label>
                    <input type="file" name="fileImg" id="exampleInputFile" />
                    <p class="help-block">
                        注意事项：请上传，png或者jpg格式图片
                    </p>
                </div>

                <div class="form-group">
                    <div class="col-sm-offset-2 col-sm-10">
                        <button type="submit" class="btn btn-default">添加商品</button>
                        <button class="btn btn-default"><a href="${pageContext.request.contextPath}/manager.jsp">返回到上一页</a></button>
                    </div>
                </div>
                <label>${message}</label>
                <%request.getSession().removeAttribute("message");%>
            </form>
        </div>
    </div>
</div>
</body>
</html>
